const { user, upload } = require('../controller');
const { scmUser } = require('../schema/index')

const routes = [
  {
    //  创建用户
    method: 'post',
    path: '/users',
    valid: scmUser.createUser,
    controller: user.createUser
  },

  {
    //  获取用户列表
    method: 'get',
    path: '/users',
    controller: user.getUser
  },
];

module.exports = routes;

